package com.wing;

import com.wing.cabinet.controller.websocket.CabinetOpenServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.wing"})
@SpringBootApplication(scanBasePackages = {"com.wing"})
@EnableScheduling
@EnableTransactionManagement
//@EnableSwagger2
public class EnterpriseCabServerApp {
    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext= SpringApplication.run(EnterpriseCabServerApp.class,args);
        CabinetOpenServer.setApplicationContext(configurableApplicationContext);
    }
}
